//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    imgUrls: [
      'http://abc.xhyonline.com/yaoyuan/banner1.jpg',
      'http://abc.xhyonline.com/yaoyuan/banner2.jpg',
      'http://abc.xhyonline.com/yaoyuan/banner3.jpg'
    ]
  },
  onShow: function() {
    if (typeof this.getTabBar === 'function' &&
      this.getTabBar()) {
      console.log('设置选中项 0')
      this.getTabBar().setData({
        selected: 0
      })
    }
  },
  changeIndicatorDots: function(e) {
    this.setData({
      indicatorDots: !this.data.indicatorDots
    })
  },
  changeAutoplay: function(e) {
    this.setData({
      autoplay: !this.data.autoplay
    })
  },
  intervalChange: function(e) {
    this.setData({
      interval: e.detail.value
    })
  },
  durationChange: function(e) {
    this.setData({
      duration: e.detail.value
    })
  },
  call: function () {
    wx.makePhoneCall({
      phoneNumber: '10000000000' //仅为示例，并非真实的电话号码
    })
  },
  
})

